package com.cloud.service;

import com.cloud.service.impl.PaymentHystrixFallbackServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @BelongsProject: my
 * @BelongsPackage: com.cloud.service
 * @Author: ji ge
 * @CreateTime: 2024-01-31  10:51
 * @Description: TODO
 * @Version: 1.0
 */
@Component
@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-PAYMENT",fallback = PaymentHystrixFallbackServiceImpl.class)
public interface PaymentHystrixService {
    @GetMapping("/payment/hystrix/ok/{id}")
    public String paymentHystrixOk(@PathVariable("id") Integer id) ;
    @GetMapping("/payment/hystrix/timeout/{id}")
    public String paymentHystrixTimeOut(@PathVariable("id") Integer id) ;
}
